package com.changyinBus.web.controller.system;


import com.changyinBus.common.core.controller.BaseController;
import com.changyinBus.common.core.domain.entity.SysTransfer;
import com.changyinBus.common.core.page.TableDataInfo;
import com.changyinBus.system.service.ISysTransferService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/system/transfer")
public class SysTransferController  extends BaseController {
    @Resource
    private ISysTransferService sysTransferService;

    @GetMapping("/list")
    public TableDataInfo list(SysTransfer transfer) {
        startPage();
        List<SysTransfer> list = sysTransferService.selectTransferList(transfer);
        return getDataTable(list);
    }
}
